x86/PSR: fix cmdline option handling
authorYi Sun <yi.y.sun@linux.intel.com>
Fri, 22 Sep 2017 14:28:35 +0000 (16:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Sep 2017 14:28:35 +0000 (16:28 +0200)
commit77f80409e086ee320b092847c915427d2eac9317
tree6500913376aadeb8e0182fa3060e118fd5cc1d5b
parenta52214b03ab6ef86a664eed234c382562825cd43
x86/PSR: fix cmdline option handling

Commit 0ade5e causes a bug that the psr features presented in cmdline
cannot be correctly enumerated.
1. If there is only 'psr=', then CMT is enumerated which is not right.
2. If cmdline is 'psr=cmt,cat,cdp,mba', only the last feature is enumerated.

This patch fixes the issues.

Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/psr.c